How to land rocket stages with Python in Kerbal Space Program

by: Marcel-Jan, 7 years ago

Last edited: 7 years ago

After I managed to automatically bring a spaceship in orbit with Python in the game Kerbal Space Program, I started to think how to land the first stage - SpaceX style. Well, the first step is accomplished: safely splashing down the rocket stage in the ocean.

The Python 3 code can be found here:
https://github.com/Marcel-Jan/KSP-kRPC-Python/blob/master/kRPC_falkon5_git_01.py

In this video I explain the whole program:
https://youtu.be/D_X5k5lvx10

Next step: precision landing on an island.



You must be logged in to post. Please login or register an account.



I've been thinking about future plans for this.
Phase 2: precision landing on an island near the Kerbal Space Center. Maybe even landing on the KSC itself.
Phase 3: play Carreer mode (in which you start with low tech and low money) with Python
Phase er.. 10: I think you can also build rockets with Python. So far future plan: automatic colonization of the solar system. Let a fancy algorithm decide what to build and where to launch it. Directive: bring colonies everywhere for the lowest price. Eat your hart out, Elon Musk :)

-Marcel-Jan 7 years ago

You must be logged in to post. Please login or register an account.


I've checked: you can't use Python in building mode. For now.

-Marcel-Jan 7 years ago

You must be logged in to post. Please login or register an account.